package AbstractClass.AbstractClassDome001;

/**
 * ClassName:Student
 * Package:AbstractClass
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/24-19:26
 * @Version:v1.0
 */

    //子类重写父类中所有抽象方法(alt+enter)
    //子类中写构造
public class Student extends Person {
    public Student() {
    }

    public Student(String name, int age) {
        super(name, age);
    }

    @Override
    public void work() {
        System.out.println("学生的工作是学习");
    }
}
